home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gExFrame
- set the member of sprite 1 to member "BUBBLE.MOV"
- set the locH of sprite 1 to -319
- set the locV of sprite 1 to -239
- updateStage()
- set the movieTime of sprite 1 to gExFrame
- updateStage()
- set the locH of sprite 1 to 320
- set the locV of sprite 1 to 240
- updateStage()
- end
-
- on exitFrame
- global gLow, gExFrame
- unLoad()
- set L to the stopTime of sprite 1
- set MaxSpeed to L / 200
- set F to L / 5
- set R to L / 640.0
- set ExMouse to the mouseH
- if the mouseH > 0 then
- if the mouseH < 640 then
- set WhereTo to the mouseH * R
- set WhereTo to integer(WhereTo)
- else
- set WhereTo to L
- end if
- else
- set WhereTo to 0
- end if
- set UnPanneau to (WhereTo + (F / 2)) / F
- startTimer()
- set ExTimer to the timer
- repeat while the mouseUp
- if the mouseH > 0 then
- if the mouseH < 640 then
- set WhereTo to the mouseH * R
- set WhereTo to integer(WhereTo)
- else
- set WhereTo to L
- end if
- else
- set WhereTo to 0
- end if
- set UnPanneau to (WhereTo + (F / 2)) / F
- if not gLow then
- if abs(the mouseH - ExMouse) > 1 then
- set ExMouse to the mouseH
- else
- set WhereTo to UnPanneau * F
- end if
- if abs(the movieTime of sprite 1 - WhereTo) > ((the timer - ExTimer) * 3) then
- if WhereTo > the movieTime of sprite 1 then
- set TheFrame to the movieTime of sprite 1 + ((the timer - ExTimer) * MaxSpeed)
- else
- set TheFrame to the movieTime of sprite 1 - ((the timer - ExTimer) * MaxSpeed)
- end if
- else
- set TheFrame to WhereTo
- end if
- set ExTimer to the timer - 1
- if TheFrame > L then
- set TheFrame to L
- else
- if TheFrame < 0 then
- set TheFrame to 0
- end if
- end if
- else
- set TheFrame to UnPanneau * F
- end if
- set the movieTime of sprite 1 to TheFrame
- updateStage()
- end repeat
- cursor(-1)
- updateStage()
- Kill()
- set gExFrame to UnPanneau * F
- set ParLa to "Panneau" && UnPanneau
- go(ParLa)
- end
-